x=[1,2,3,4,5]
print(x[:3])
print(x[-2:])
print(x[::-1])
print(x[::2])
print(x[::-2])